package com.charger.trade.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.charger.trade.mapper.ChargingrecordsMapper;
import com.charger.trade.domain.Chargingrecords;
import com.charger.trade.service.IChargingrecordsService;

/**
 * 交易管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-22
 */
@Service
public class ChargingrecordsServiceImpl implements IChargingrecordsService 
{
    @Autowired
    private ChargingrecordsMapper chargingrecordsMapper;

    /**
     * 查询交易管理
     * 
     * @param chargingrecordsId 交易管理主键
     * @return 交易管理
     */
    @Override
    public Chargingrecords selectChargingrecordsByChargingrecordsId(Long chargingrecordsId)
    {
        return chargingrecordsMapper.selectChargingrecordsByChargingrecordsId(chargingrecordsId);
    }

    /**
     * 查询交易管理列表
     * 
     * @param chargingrecords 交易管理
     * @return 交易管理
     */
    @Override
    public List<Chargingrecords> selectChargingrecordsList(Chargingrecords chargingrecords)
    {
        return chargingrecordsMapper.selectChargingrecordsList(chargingrecords);
    }

    /**
     * 新增交易管理
     * 
     * @param chargingrecords 交易管理
     * @return 结果
     */
    @Override
    public int insertChargingrecords(Chargingrecords chargingrecords)
    {
        return chargingrecordsMapper.insertChargingrecords(chargingrecords);
    }

    /**
     * 修改交易管理
     * 
     * @param chargingrecords 交易管理
     * @return 结果
     */
    @Override
    public int updateChargingrecords(Chargingrecords chargingrecords)
    {
        return chargingrecordsMapper.updateChargingrecords(chargingrecords);
    }

    /**
     * 批量删除交易管理
     * 
     * @param chargingrecordsIds 需要删除的交易管理主键
     * @return 结果
     */
    @Override
    public int deleteChargingrecordsByChargingrecordsIds(Long[] chargingrecordsIds)
    {
        return chargingrecordsMapper.deleteChargingrecordsByChargingrecordsIds(chargingrecordsIds);
    }

    /**
     * 删除交易管理信息
     * 
     * @param chargingrecordsId 交易管理主键
     * @return 结果
     */
    @Override
    public int deleteChargingrecordsByChargingrecordsId(Long chargingrecordsId)
    {
        return chargingrecordsMapper.deleteChargingrecordsByChargingrecordsId(chargingrecordsId);
    }
}
